package com.my.util;

import org.apache.log4j.Logger;

/**
 * 功能:日志工具类
 * 
 * @author chenjun
 * @date 2013-2-19
 * 
 */
public class LogUtil {
	/**
	 * 功能:获取日志对象
	 * 
	 * @author 陈军
	 * @date 2013-2-19
	 * @return Logger
	 */
	public static Logger getLogger() {
		StackTraceElement[] stacks = Thread.currentThread().getStackTrace();
		return Logger.getLogger(stacks[2].getClassName());
	}
}
